﻿@model TGBTech.Core.Models.DanhMuc.KhachHang

@{
    ViewBag.Title = "Edit";
}

<div class="row">
    <div class="portlet box blue">
        <div class="portlet-title">
            <div class="caption">
                Cập nhật Khách hàng
            </div>
            <div class="tools">
                <a href="" class="collapse"></a>
                <a href="" class="reload"></a>
            </div>
        </div>
        <div class="portlet-body">

            @using (Html.BeginForm("Edit", "KhachHang", FormMethod.Post, new { id = "formEditKhachHang" }))
            {
                @Html.AntiForgeryToken()
                <div class="form-horizontal">
                    @Html.ValidationSummary(true)
                    @Html.HiddenFor(model => model.State)

                    <div class="form-group">
                        <label class="col-md-3 control-label">Mã KH</label>
                        <div class="col-md-9">
                            @Html.TextBoxFor(model => model.Id, new { @class = "form-control", @readonly = "" })
                            @Html.ValidationMessageFor(model => model.Id)
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label">Tên KH</label>
                        <div class="col-md-9">
                            @Html.TextBoxFor(model => model.Name, new { @class = "form-control" })
                            @Html.ValidationMessageFor(model => model.Name)
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label">Địa chỉ</label>
                        <div class="col-md-9">
                            @Html.TextAreaFor(model => model.Address, new { @class = "form-control" })
                            @Html.ValidationMessageFor(model => model.Address)
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label">SĐT</label>
                        <div class="col-md-9">
                            @Html.TextBoxFor(model => model.Phone, new { @class = "form-control" })
                            @Html.ValidationMessageFor(model => model.Phone)
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label">Fax</label>
                        <div class="col-md-9">
                            @Html.TextBoxFor(model => model.Fax, new { @class = "form-control" })
                            @Html.ValidationMessageFor(model => model.Fax)
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label">MST</label>
                        <div class="col-md-9">
                            @Html.TextBoxFor(model => model.MST, new { @class = "form-control" })
                            @Html.ValidationMessageFor(model => model.MST)
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-md-offset-3 col-md-10">
                            <input type="submit" value="Cập nhật" class="btn blue" />
                        </div>
                    </div>
                </div>
            }

        </div>
    </div>
</div>
